import IButtonOptions from "@/components/ButtonGroup/button-scheme";
import InputType from '@/enum/InputType'
import {IFormConfig, IFormItem} from "@/components/Form/form-scheme";

/**
 * 查询表单配置
 */
const searchItems: IFormItem[] = [
    {
        model: 'user',
        type: InputType.INPUT,
        label: `操作用户:`,
        clearable: true
    },
    {
        model: 'content',
        type: InputType.INPUT,
        label: `操作关键字:`,
        clearable: true
    },
    {
        model: 'optionTime',
        type: InputType.DATEPICKERRANGE,
        label: `操作时间:`,
        clearable: true,
        placeholder: '选择日期'
    },
]
const SearchConfig: IFormConfig = {
    items: searchItems,
    labelWidth: "100px",
    span: 8
}
export {SearchConfig}

/**
 * 按钮组配置
 */
const ButtonConfig: IButtonOptions = {
    reset: {
        clickCall: 'reset',
        btnTip: '重置'
    },
    query: {
        clickCall: 'query',
        btnTip: '查询'
    }
}
export {ButtonConfig}